eat humble pie
you got caught doing something stupid and had to admit it while everyone made fun of you
He tried to prank the teacher and got caught and had to admit it.
She ate the teacher’s chalk and had to say sorry in front of the class.
He tried to hide the mess he made and got caught and had to say sorry.
xs