It is not far from Baku and there are a lot of travel office which offers trip to Gobustan.
It's really worth to see. Good idea is to take a tour guide because he can explain everything. We had great time there. Moreover there are wonderful views from there.