Watch Ansel Elgort, Jamie Foxx and James Corden's Spectacular Riff-Off

Trio of triple threats show off singing chops on ‘The Late Late Show’

Viewers of The Late Late Show were treated to a spectacular, so-called "impromptu" riff-off Thursday night that involved vocally gifted multi-hyphenates Jamie Foxx, Ansel Elgort and James Corden.

The musical evening kicked off with Corden pretending to start a segment about dogs in sunglasses, but Foxx, who was seated in the audience, heckled Corden into having a riff-off instead. "I don't wanna hear about no dogs in sunglasses," he protested.

Foxx and Corden then battled it out with help from a capella group The Filharmonic, choosing their songs based on their favorite male artists. Corden gave a high energy performance of Bruno Mars' "24K Magic," but was quickly trounced by Foxx, who opted for a Sixties hit with Stevie Wonder's "For Once In My Life."

"It was good. It wasn't great, if I'm being honest," Corden critiqued cheekily. "I've seen better." The next round, the pair tackled songs featured in Foxx's upcoming film, Baby Driver, which included James Brown's "I Got the Feeling" and Gwen Stefani's "Hollaback Girl."

Then, a new face. Foxx's Baby Driver costar, Elgort, who was presumably relaxing backstage, couldn't sit in silence any longer, and took to the stage with his own contribution, a smooth rendition of The Commodores' "Easy."

"That was … phenomenal," Corden admitted. "I get it. I get it. I should never have entered this battle. You win. You win." But in classic Corden style, the night ended on a happy note, with the three men belting out "Ain't No Mountain High" together, to the cheers and applause of the audience.