How do I protect my assets when getting married?

I have about 80k in equity in my home and 30k in savings. I’d like to protect my assets such as my home and savings that I earned before getting married. Will a prenup work for this? My partner has some personal loans from a failed business and a few thousand in irs debt that I don’t want to be responsible for.