It would be very simple in 2D, just use sprites for the track (You could draw the whole track in a single sprite)
Then, to prevent the cars from going off the track, i would use CollisionPolygon2D to make the "Outside" borders and another one for the "Inside" borders