Simple answer:
You said a farm? You could make lines in the dirt to make your own ruler. For example, a line for every foot or inch, depending how close or far you are from each other.
Then, you each pull the string towards each-other until the length between each of you is the same amount.