To get drunk.
It is thought that its origin dates back to
the wild west in the 1800's, where a cowboy would have to tie up his horse to a
hitching post before he could go into the saloon and get drunk.
A
British slang for this term, "tie a bun on", also means "to get drunk", however nobody is quite sure how someone came up with that one...