Marble is chemically calcium carbonate (chemical formula CaCO3). When a few pieces of marble are dropped in dilute hydrochloric acid, the two compounds react to form calcium chloride, carbon dioxide, and water.
Thus, the brisk effervescence observed is due to the formation of carbon dioxide gas. When carbon dioxide gas is passed through lime water, it turns lime water milky due to the formation of calcium carbonate.