The ancient altar in Baldurs Gate 3 is located in Balthazar's room within Moonrise Towers. To activate the altar, you need to put something inside it. According to some sources, you need to pick up a heart from any of the bodies in the room and put it in the altar. Once you do this, the puzzle will be solved and you can access the secret room.