I'm pretty certain the joke is that the dentist told him to open up his mouth for him to work on his teeth, but the guy misunderstood and thought he told him to "open up", as in the 'let out your deepest innermost thoughts and emotions that you have bottled up inside yourself' kind of open up.