face the music
Coming forward and admitting you did something wrong and you’re ready to be yelled at.
He walked into the room and said, 'I did it.' That was facing the music.
She raised her hand and said, 'It was me.' That was facing the music.
He stood up and said, 'I messed up.' That was facing the music.