A rescue dog has been hailed a hero after leading a passerby to her owner when he collapsed and fell into a ditch face first.