Before the trip, I got a haircut.

Literal

Travel [to-に] go before [time-に], I [topic-は] haircut did.

散髪する (to get a haircut) is a slightly more formal word than 髪を切る. 旅に行く前に (before going on the trip) uses the standard ~前に time pattern. Simple past-tense narrative.