You may be asked to take a small barium pill along with the barium swallow. The pill produces gas in your esophagus. It can help your health care provider see different structures inside of your body.