Was he/she in the water recently ? If so they might have aspirated and you would need to tip him over nose doen at a slight angle to let more water come out. If that wasn't the cause and the bubbles continue he might have an R.I.
Is he wheezing or breathing heavy ?