The first thing you should do is assess the situation. If your dog seems to be acting normal and doesn't appear to be in any pain, then there is likely no need to worry. However, if your dog is vomiting, has diarrhea, or seems to be in pain, then you should take them to the veterinarian immediately. If your dog only ate the wrapper and not the cupcake itself, then there is likely no need for concern.