Act quickly. Interrupt with a comment to the group, rather than to the individuals involved in the heated debate. For example: "Let's all take a chill pill... now what is it we were needing to figure out?" or "How about a break? I could use one."
See Chapter 5 of Techniques for Managing Projects for further advice.