As a female in a male dominated industry, let me give you my thoughts on the matter:
Meagar did the right thing.
That comment was just that: A comment. It provided no extra benefit to your answer, and was correctly removed. As a user with full editing privileges, you could have handled this differently from the start. You could have edited the line that bothered you out of the question, and left an edit summary explaining why you did it, rather than putting a comment in your answer's text. Maybe left a comment explaining why you did it, if you wanted to be sure the OP saw it. But adding irrelevant noise to your answer is not the way to handle this.
You may look at my low rep and account with a couple years to its name and think I just don't understand, I don't see this issue because I'm not active enough on the main site. Well, I'm not going to argue about not seeing this, but I peruse the main site a lot, even if I have no questions to ask and no answers to give. But what I do see is a lot of meta posts. I am very active on Meta, as a brief glance of my Meta profile will tell you. In my opinion, if something truly heated is going to come up, it's going to be on Meta in some form. Whether it starts here or migrates here, a lot of issues do end up coming here in some form.
There have been other posts on the gender issue. I've answered a fewat least one of them, I've commented on a lot of themthe ones I saw, and my stance remains the same: Stack Overflow is not the place to handle these issues or try to educate users about these issues. Stack Overflow is for programming problems, not gender inequality issues and lessons.
Now don't get me wrong- If you see something outrageous in terms of someone being sexist, flag it immediately. The mods will handle it and clean it up. But someone using "guys" to refer to the collective users of Stack Overflow is nothing to really waste your time with. As others have addressed, "guys" is a term generally used to mean a group of people of any gender. While it may not have originally meant that, it generally does now.
If you see someone clean up noise that adds nothing to your question or answer, I urge you to take a step back before you get annoyed and think, "Does this really add anything to my post? Does it address the problem at hand?" If the answer to those questions is no, whatever was removed really doesn't need to be there.
We're writing posts for the future users with the same issues, or trying to. Don't we want them to see cleaned up and high quality contributions, not tongue-in-cheek remarks to comments that really hurt nothing?