At best attributing it to diversity and playing the sex card oversimplifies things such as the individual's upbringing and his personality. People are all different, so I find it unfair to say that this is not the product of a person being a person, but a person who works in a male dominated environment.
Is the implication thus that an industry needs more women for it to be more mature? That without diversity men (note how the article emphasises this is a male problem) will resort to making dick jokes and chatting about celebrities they'd bang all the time? And how is that implication any less offensive than the lack of professionalism the speaker exhibited?
So to answer the question, I attribute this not to diversity or anything such, but to an individual who was, as you've said, immature. He alone does not make the entire development community immature, nor is he exemplary of a male dominated profession.
Oh? What would you attribute it to?
It's quite likely that it is because of a lack of women. Some immature people get accustomed to working in a boy's club environment, and don't grow up, don't know how to act professionally.
Note that you're making the error of assuming that attributing the cause to lack of diversity implies some kind of quota system to remedy the lack of diversity.
More women would be great. Better would be for immature developers to grow up.