How do you stay calm in the face of provocation or bad faith?
You do not stay calm by swallowing your emotion. Gritting your teeth while you boil has a cost, and it is paid within the exchange: the conversation thins out and everyone can tell there is something unaddressed.
What works falls into two registers.
Regulation first. Acknowledge the emotion instead of denying it, occupy the space between the stimulus and the response, translate what you feel into a need rather than into a counterattack. Cognitive reappraisal, which consists of changing how you read the situation before the emotion rises, is more effective and less costly than suppression.
Then the question of terrain. Provocation is trying to make your emotion the subject. The classic trap consists of defending your right to be angry, which leaves the emotion at the center of the debate. The useful response is to redirect it toward what caused it: "if I am reacting like this, it is because this subject matters, for these reasons. What do you think of those reasons?" Your emotion stops being the object of the dispute, and the subject becomes the subject again.
One last point. If you cannot manage it in a given situation, that is not a personal failure. It is often a sign that the frame is not right, and changing the frame is a legitimate option.