Follow that? If ants truly gauge the distance they’ve traveled from the nest (and therefore the distance back to the nest) by counting their steps, then returning to the nest with longer legs means they would travel farther with each step, and hence . . . find themselves WAY past the nest by the time they stopped counting.
Just an example of how innovative thinking can result in a clever way to prove a hypothesis.