Mariah Carey Pays a Surprise Visit to Jamie Foxx's 'Beat Shazam': Exclusive Photos

Michael Becker/FOX
Mariah Carey made a surprise visit to the Fox game show "Beat Shazam," hosted by Jamie Foxx.

Mariah Carey stopped by to surprise contestants and visit Jamie Foxx on the set of an upcoming episode of Beat Shazam

The iconic singer's appearance was totally unexpected, as she walked onto the music-based gameshow during a round where the categories was "Divas." Foxx joked that Mariah Carey should be there for the round, evoking some laughs, and then she actually appeared and walked to the piano on set. 

Carey stuck around for one song, which appropriately was her own "Always Be My Baby." Funnily, one of the teams guessed wrong and she had to give them a hard time before departing. 

Foxx spoke with Billboard last month about what to expect on Beat Shazam and teased surprise guests such as this joining him at the "magic piano."

"There's a piano on the set, and I say I've got a "magic piano" and sometimes when I sing on this piano, whoever I'm singing, the artist will come out -- maybe -- so I'll sing, 'Where are you now that I need you?' -- you never know, [Justin Bieber] may come out. Or Barbra Streisand, or Drake, or anybody that I've hung out with or worked with. You never know who might stop by, but that's just the element of having fun," he said.