Shortening of the warning "heads up" or "look out!", usually about a ball flying through the air towards an unsuspecting person.
Jeremy: "Hey you see that ball about to hit that guy?" Michael: "Ayo, HEADS!"