I would assume it's not only about the answer, but also/more about how an interviewer answers it.
But also, as you mention, many companies have disappointing gender ratios, so it's not like I'd pass on a company purely because of that. It's more like another data point to consider. And conversely, if a company does have a higher portion of female engineers, that will weigh strongly in its favor.