In order to buy gold stocks, you'll need to find companies that mine gold. After that, you'll need to sign up with a broker and begin trading.
While you won't directly be exposed to the gold price, the miners themselves are pretty closely aligned to the gold price. This goes without saying, but the higher the price of gold, the better it is for gold miners and vice versa.
Alternatively, you can choose to invest in gold ETFs that are also traded on the stock exchange. These are either physically backed by gold or trade futures contracts.
Finally, if neither of these options appeal to you and you would like to own gold you can buy gold bullion or even jewellery.