You can tell an ant’s gender by putting it in water.

If it sinks, girl ant. If it floats, buoyant