Two MPs traded jibes in the House of Commons chamber after they became involved in a row following the final debate before Christmas.