The fighter walked on stage to the surprise of the audience and sang a song together with TV presenter Jimmy Fallon.
McGregor told the visitors that his son had turned two and said he would sing an Irish folk song to celebrate the occasion.
The athlete started solo and was later joined by Fallon. McGregor's performance was recorded on video, and the fighter later uploaded it to his Instagram account.