Ham it up

To do something silly or try to exaggerate something in a funny way.

I was hamming it up with my friend in front of the principal’s office.