Transformers actor Josh revealed their child's sex during an appearance on US daytime show Live! With Kelly and Michael, scheduled to air today (17 July).
The confirmation came when Josh was given the choice of taking home a pink or blue onesie, and he opted for the latter, proudly holding it up for the camera.
Fergie and Josh confirmed their first pregnancy earlier this year, but this is the first time we've heard they are having a baby boy.
"We've been trying for the last year or so," he said during a recent appearance on Chelsea Lately. "We are over the moon about it. We've been trying for quite a while."
Josh has also said he'll definitely be in the delivery room when Fergie gives birth - although she's asked him to stay by her head throughout. "It's a beautiful thing," he said. "All my friends have told me it's the most amazing thing ever, when you hold the baby for the first time."
The parents-to-be married back in a 2009 ceremony at the Church Estates Vineyard in Malibu, California, in front of a star-studded crowd that included will.i.am, Kate Hudson and Stacy Keibler.
More celebrities pregnant! Gallery!
Copyright: Vimeo / Weiss Eubanks