The trick is the other person doing that too. Simply put a lot, if not most people don't want a rational debate where they discuss the many sides of an issue. They want to win.
Take religion for example, seemingly most people that have one tend to believe not only they are right about it (if you debate it's correctness it shows your lack of faith), they are trying to convert you and if they fail you are an enemy.
Nah, this approach is not good because it kinda starts with the frontiers already drawn.
You don't even need to assert your own position, just ask question like "What is your intent behind saying that" or "Why does it have to be this specific way?" to derail them into some status quo. Provoke them into explaining their "great plan" until they tumble.