Here are the steps on how to build a taming pen. First you need to pace the 16 Stone foundations in a 4x4 or a square. Second you need to place the Stone walls on 3 of the 4 sides of the square. Third you need to place your Stone gateway on the 2 middle foundations on the side of the square you did not place and Stone walls on.
The Ark item ID for Large Stone Wall and copyable spawn commands, along with its GFI code to give yourself the item in Ark. Other information includes its blueprint, class name (PrimalItemStructure_LargeWall_Stone_C) and quick information for you to use.