If actors or actresses ham it up, they exaggerate every emotion and gesture when they are acting, often deliberately because they think that the audience will be more amused.
Thrusting themselves into the spirit of the farce, they ham it up like mad.