All good advice here. It would help to know where your ranch is. If it's in California, for example, what you heard was a black bear, and all advice here is sound.

If you were in Wyoming or Montana, it might have been a Grizzly...and that's a whole different animal.

Either way, weapons are a really bad idea. And bear spray in a teepee or tent is a recipe for disaster!
_________________________
Check our our website: http://www.backpackthesierra.com/

Or just read a good mystery novel set in the Sierra; https://www.amazon.com/Danger-Falling-Rocks-Paul-Wagner/dp/0984884963