With the continuous growth of renewable energy penetration, the power system presents dual-high characteristics, which bring about reduced system inertia, insufficient short-circuit capacity and weakened voltage support capability. Following N-1 contingencies, the risks of low voltage, weak damping and power angle instability become prominent. Relying on grid-forming technology with full-process voltage-source control, grid-forming (GFM) devices can autonomously establish the grid and serve as an effective measure to guarantee the safe and stable operation of power systems with high penetration of renewable energy. Nevertheless, there is still a lack of systematic siting and sizing methods to realize the optimal configuration of such devices subject to dynamic stability and short-circuit ratio constraints. First, an optimization method for siting and sizing of grid-forming devices considering dual constraints of dynamic stability and short-circuit ratio is proposed. A siting model adopting entropy weight-analytic hierarchy process (AHP) comprehensive weighting and a sequential greedy sizing optimization model are established. Then, simulation studies on a modified IEEE 39-bus system verify the effectiveness of the proposed method. The results show that compared with other configuration strategies, the proposed method can realize optimal deployment of grid-forming devices at reasonable investment cost while ensuring safe and stable system operation, and possesses favorable engineering application value.