if you assume markets price inflation expectations efficiently, the answer is invest in just about anything with a market price or interest rate.
Even bonds. Bonds are just the price of money in the future. If the market expects inflation then bond prices will drop accordingly to match it. Just don't stuff money under your mattress or keep it all in a checking account.