Jennifer Garner on Ben Affleck's Nude Scene in 'Gone Girl': "You're Welcome"

Michael Rozman/Warner Bros.

"I try to consider myself a charitable person and I wanted to give back," she tells Ellen DeGeneres

Jennifer Garner isn't afraid to share her husband's body with the world.

During her appearance on Wednesday's The Ellen DeGeneres, the actress was asked whether Ben Affleck's nude scene in Gone Girl had anything to do with the movie's success.

See more Spoiler Alert! 'Gone Girl' and 11 Other Movies With Big Twists

Says host Ellen DeGeneres: "Maybe the reason it’s No. 1 is because he’s showing his …"

"His penis," Garner interjects, adding: "I think you’re probably on to something. And what I have to say is — you’re welcome. You know, I try to consider myself a charitable person and I wanted to give back. You give me so much. I wanted to give something back to all of you."

Garner also said that she and Affleck did talk it over before he shot the scene.

"It was a discussion," she said. "It was like 'Hey, um at work today [director David] Fincher talked me into coming out of the shower.' And I was like, 'Cool, well I hope he had on a wide lens.' "

Read more Ben Affleck Shows His "Imax Penis" in 'Gone Girl'

Garner stars in Jason Reitman's Men, Women & Children, which opened in limited release on Friday, the same day as Gone Girl.

Meanwhile, fans of Gone Girl can read the children's books that were written by the parents of character Amy Dunne (played in the movie by Rosamund Pike). A free preview is available on iTunes.

According to the description: "Gone Girl Amy Dunne made national headlines when she disappeared on her fifth wedding anniversary — and her husband, Nick, was implicated in a series of shocking developments. But before she became the subject of a frenzied crime investigation, Amy was familiar to millions of children as the plucky blonde protagonist of the Amazing Amy books. Written by Amy’s doting psychologist parents, these charming picture books address kids’ burning questions, like: Should I always tell the truth? Can I bend this rule? Should I try a little harder? This sampler lets you follow along on some of Amazing Amy’s adventures as she leads by example and makes good, smart, positive choices."